# -*- coding: utf-8 -*-
# author: sixmillions
# date: 2022/3/26

# 序列解包

# demo1
d = 1, 2, 3
print(type(d))  # <class 'tuple'>
a, b, c = d
print(a, b, c)  # 1 2 3

# demo2
x, y, z = [4, 5, 6]
print(x, y, z)  # 4 5 6

# 链式赋值
# demo3
x = y = z = 1
print(x, y, z)  # 1 1 1
